{{#extends @html/widget/hp/widget.html}}

{{:widget_class}}wg-comments{{/:widget_class}}

{{:widget_body}}
	{{!connect "theme/widget/comments.css"}}
	<div class="list-">
	<!--{{?widget.tdi_not_found}}
		<div class="content"><p>Виджет не настроен</p></div>
		{{?:}}-->
			{{?widget.content.items}}
				{{!for widget.content.items do=@:wgcomm_item}}
				{{:wgcomm_item}}

					{{?*delimiter_date}}<div class="date-">{{*delimiter_date|date "%d %b"}}</div>{{/?}}
					<!--a href="{{/}}{{community.url}}/members/{{comm_user_oid}}" title="">{{*item_uname}}</a--> 
					<!--{{*comment_count}}-->

					<div class="item-">
						<div class="meta-">
							«<a href="{{/}}{{community.url}}/{{*item_oid}}" class="parent-">{{*item_title}}</a>»:
						</div>
						<div class="comment-">
							<a href="{{/}}{{community.url}}/members/{{*comm_user_oid}}" title="" class="user- service-user">{{*comment_poster}}</a><span class="timelock-"> в {{*comment_time|date "%H:%i"}}:</span>
							<a href="{{*comment_url |safe}}">{{*comment_text | truncate 70 from="begin"}}</a>
						</div>
					</div>
				{{/:wgcomm_item}}
			{{?:}}
				<div class="typography"><p>Комментариев пока нет.</p></div>
			{{/?}}
		<!--{{/?}}-->
	</div>
{{/:widget_body}}

